# -*- coding: utf-8 -*-
# @Author  : haomh
# @Time    : 2025/11/6 14:05
# @Function:

# print(abs(-10))
#
# print(round(1.2))
# print(round(1.9))
# print(round(1.5))
# print(round(2.5))
# print(round(3.5))
# print(round(4.5))
# print(round(5.5))

# def add_num(a, b):
#     return abs(a) + abs(b)
#
#
# result = add_num(-1, 2)
# print(result)
#
# def sum_num(a, b, f):
#     return f(a) + f(b)
#
#
# result = sum_num(-10, 2, abs)
# print(result)

# # 需求：计算list1序列中各个数字的二次方
# list1 = [1, 2, 3, 4, 5]
#
# def func(x):
#     return x * x
#
# result = list(map(func, list1))
# print(result)
# print(list(result))
#
# import functools
#
# list1 = [1, 2, 3, 4, 5]
#
#
# def func(a, b):
#     return a + b
#
#
# result = functools.reduce(func, list1)
# print(result)

# list1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
#
#
# def func(x):
#     return x % 2 == 0
#
#
# result = filter(func, list1)
# print(result)
# print(list(result))

list1 = [2,3]
for i in range(0, 8):
    a = list1[i + 1] + 3
    list1.append(a)

print(list1)
